package com.example.wallpaperapp.ui.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.wallpaperapp.R;
import com.example.wallpaperapp.base.BaseActivity;
import com.example.wallpaperapp.utils.StatusBar;

public class CollectActivity extends BaseActivity {
    private TextView collect_bar;
    private ImageView back;
    @Override
    protected int initLayout() {
        return R.layout.activity_collect;
    }
    @Override
    protected void initView() {
        back=(ImageView)findViewById(R.id.ad_back);
        collect_bar = findViewById(R.id.collect_bar);
        LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams)collect_bar.getLayoutParams();
        layoutParams.height = StatusBar.getStatusBarHeight(this);
        collect_bar.setLayoutParams(layoutParams);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
    @Override
    protected void initData() {

    }
}